package models.msgs;

public class WinnerInfo implements IMessage{
    String[] names;
    String[] handRepresentations;
    String winners;
    
    public WinnerInfo  (String[] names, String[] handRepresentations, String winners) {
	this.handRepresentations = handRepresentations;
	this.names = names;
	this.winners = winners;
    }

    public String[] getNames() {
        return names;
    }

    public String[] getHandRepresentations() {
        return handRepresentations;
    }

    public String getWinners() {
        return winners;
    }

	@Override
	public String getMessageString() {
		String koszmarek = new String("\nWinners: "+ winners);
		for(int i = 0; i < names.length; i++) {
			koszmarek += "\n" + names[i] + ": " + handRepresentations[i]; 
		}
		return koszmarek;
	}

    
    
}
